$.getJSON('baoming_list.php', {

  },
  function(data) {
    for (let i = 0; i < data.length; i++) {
      $('#ListArea').append(
        '<tr>  ' +
        '  <td>' + (i + 1) + '</td><td><a class="XingMing" baomingid="'+data[i].id+'" style="cursor:pointer">' + data[i].XingMing + '</a></td><td>' + data[i].XingBie + '</td><td>' + data[i].XueHao + '</td><td>' + data[i].IdNumber + '</td><td>' + data[i].BanJi + '</td><td>' + data[i].Phone + '</td><td>' + data[i].ReferTime + '</td> ' +
        '</tr>'
      );
    }
    optAction();
  }
);

function optAction() {
  $('.XingMing').click(function() {
    var baomingid = $(this).attr('baomingid');
    window.open('baoming_detail.html?id=' + baomingid);
  })
}
